---
title: "update local state · RUAL Documentation"
description: "Updates UI state and riggers updates based of it."
canonical: https://docs.rual.nl/block-types/state ui/state_update_state
language: en
---

# update local state

This block is part of the [`state ui`](https://docs.rual.nl/block-types/state%20ui) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

### Type Selection Required

This block requires you to select the data type you want to work with. You must manually select the type using the type selector modal. To access the modal, click the white button on the block.

### Field Selection Required

This block requires field selection (in). You must manually select the fields you want to work with using the field selector modal. To access the modal, click the white button on the block.

Updates UI state and riggers updates based of it.

- state required `state`

- state key required `value` State key to update

- skip trigger `condition` if `true` given, it will not trigger change but will send the data to the client locally.

- store session `condition` if `true` given, it will store the data of this local state key in a local storage session.

- state `state`

| `update state` |
| --- |

A typical wiring for [update local state](https://docs.rual.nl/block-types/state%20ui/state_update_state): [value](https://docs.rual.nl/block-types/value/value_default) feeds the `key` pin; [true](https://docs.rual.nl/block-types/condition/condition_is_true) feeds the `skip_update` pin; the `state` out pin feeds [get component child](https://docs.rual.nl/block-types/state%20actions/state_component_get_child).

![Studio canvas example for the update local state block: typical wiring for update local state.](https://docs.rual.nl/canvas-examples/state_update_state.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [value](https://docs.rual.nl/block-types/value/value_default): feeds into this block. Simply returns the provided value.

- [branch](https://docs.rual.nl/block-types/flow/branch): feeds into this block.

- [true](https://docs.rual.nl/block-types/condition/condition_is_true): feeds into this block. Gives the condition true hard-coded.

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
